You are here: Configuring with VBScript > Understanding common conflicts > Suppressing custom code during GCF operations

Suppressing custom code during GCF operations

Some of the standard Meridian Enterprise events occur during GCF import and export operations. In the following lists, an asterisk (*) is used for brevity but indicates that there are separate Initiate, Before, After, and Terminate events that are otherwise named the same:

To skip the execution of your custom code (if any) during these events so that it doesn't interfere with Global Collaboration Framework processing, add the following line to the top of the corresponding event handler procedures:

If Vault.Argument("IsGcf") then Exit Sub

Notes

If you implement a solution based on events defined in script instead of the GcfEvents extension, you must also call the relevant GCF event handler from the regular event handler. For example, when the vault configuration contains logic to handle import from and export to briefcases that are created manually, it is usually desirable to isolate this from the GCF logic. The easiest way to do this is to check the GCF global variable bIsGCF as in the following example:

Sub BrcEvent_BeforeInclude (Batch, Briefcase, CheckOut)
    GCFBrc_BeforeInclude Batch, Briefcase, CheckOut
     If Not bIsGCF Then
        'Code for manual briefcases
    End If
End Sub

Note    You need to call GCFBrc_BeforeInclude as the first statement in the event handler. GCFBrc_BeforeInclude will check internally if a GCF transfer is being executed and take no action if not. GCFBrc_BeforeInclude should be called first because it contains the code to set bIsGCF and the other GCF-related global variables.

Related concepts

Configuring with VBScript

Understanding the system requirements

Understanding offline shares

Understanding work area support

Related tasks

Understanding common conflicts

Hiding the Collaboration property page

Confirming deletion of documents

Replicating workflow logs

Installing the GCF

Registering the Meridian Enterprise extensions

Creating the tables

Importing the briefcase settings

Merging registry settings

Creating and editing a share

Importing the VBScript code

Installing the GCF components

Upgrading GCF

Related information

Creating a GCF website with basic authentication